package com.origin.tingting.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author： 丁涛
 * @Date: Created in 13:16 2019/2/14
 * @Description: ${description}
 * @Version: ${version}
 */
@Controller
public class FuckController {
    @RequestMapping(value = "/{name}")
    public String index(@PathVariable String name, ModelMap modelMap){
        modelMap.addAttribute("name", name);
        return "index";
    }
}
